package com.crowdfunding.mapper;

import com.crowdfunding.entity.CrowdFunding;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaoyu
 * @since 2021-07-09
 */

public interface CrowdFundingMapper extends BaseMapper<CrowdFunding> {

    @Update("update crowd_funding set cf_already_amount =#{am} where cf_id=#{cfid}")
    int updateAreadyAmount(@Param("am") double Amount, @Param("cfid") String cfId);
}
